package com.hd.appcommon.service.impl;

import com.hd.appcommon.entity.CourseScore;
import com.hd.appcommon.mapper.CourseScoreMapper;
import com.hd.appcommon.service.CourseScoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;


/**
 * (CourseScore)表服务实现类
 *
 * @author makejava
 * @since 2023-07-04 11:46:00
 */
@Service
public class CourseScoreServiceImpl extends ServiceImpl<CourseScoreMapper, CourseScore> implements CourseScoreService {
    @Autowired
    CourseScoreMapper courseScoreMapper;

    @Override
    public List<CourseScore> getSchoolYear() {
        return courseScoreMapper.getSchoolYear();
    }

    @Override
    public List<CourseScore> getSchoolYearBySno(String sno) {
        return courseScoreMapper.getSchoolYearBySno(sno);
    }

    public int courseCreditSync(String sno,String year, String term){
        return this.baseMapper.courseCreditSync(sno,year,term);
    }

}
